package de.mlp_distributed.mlp.math;

import de.mlp_distributed.mlp.math.mahout.DenseVector;
import de.mlp_distributed.mlp.math.mahout.RandomAccessSparseVector;
import de.mlp_distributed.mlp.math.mahout.Vector;

public class MahoutVectorFactory implements VectorFactory {

	public MahoutVectorFactory() {
		super();
	}

	@Override
	public Vector construct(final double[] values) {
		return new DenseVector(values);
	}

	@Override
	public Vector construct(final int size) {
		return new RandomAccessSparseVector(size);
	}
}
